<template>
  <div class="sub">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';

@Component
export default class SubPage extends Vue {
  protected mounted() {
  }
}
</script>

<style lang="stylus" scoped>
.sub
  width 100%
  height 100%
  position fixed
  top 0 
  left 0
</style>

